/**
 * 网站所有幻灯片
 */

if(location.href=="http://jr.jl.gov.cn/" || location.href=="http://jr.jl.gov.cn/index.html"){
//首页


//	_EsdDynamicTransformationScript.slidePointIntervalsf = setInterval(function () {
//	if (      $("#D1fBt a:eq(4) i")[0] != undefined 
//	       && $("#D1pic1 .fcon:eq(4) .shadow a")[0] != undefined ) {
//		clearInterval(_EsdDynamicTransformationScript.slidePointIntervalsf);
		
	//轮播,右下角原点--鼠标点击触发情况

	//轮播：只获取轮播中一个a标签。
	//以文字a标签为主，图片a标签尽量不要，title不稳定

	//轮播前的标签
//	 _EsdDynamicTransformationScript.num = $("#nav_all>.wang-spy:eq(8) ul li a").length-1;
	 _EsdDynamicTransformationScript.esdTagFrontNum1 = $("#nav_all>.wang-spy:eq(8) ul li a:eq(5)");

	//文字A标签
	 _EsdDynamicTransformationScript.esdTagANum1 = $("#D1pic1 .fcon:eq(0) .shadow a");
	 _EsdDynamicTransformationScript.esdTagANum2 = $("#D1pic1 .fcon:eq(1) .shadow a");
	 _EsdDynamicTransformationScript.esdTagANum3 = $("#D1pic1 .fcon:eq(2) .shadow a");
	 _EsdDynamicTransformationScript.esdTagANum4 = $("#D1pic1 .fcon:eq(3) .shadow a");
	 _EsdDynamicTransformationScript.esdTagANum5 = $("#D1pic1 .fcon:eq(4) .shadow a");

	//原点
	 _EsdDynamicTransformationScript.esdTagCircleNum1 = $("#D1fBt a:eq(0) i");
	 _EsdDynamicTransformationScript.esdTagCircleNum2 = $("#D1fBt a:eq(1) i");
	 _EsdDynamicTransformationScript.esdTagCircleNum3 = $("#D1fBt a:eq(2) i");
	 _EsdDynamicTransformationScript.esdTagCircleNum4 = $("#D1fBt a:eq(3) i");
	 _EsdDynamicTransformationScript.esdTagCircleNum5 = $("#D1fBt a:eq(4) i");

	//轮播后的标签
	 _EsdDynamicTransformationScript.esdTagAfterNum1 = $("#tabBox1 .tabTag li:eq(0) a");


		//轮播前的焦点
		_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
			$(document).bind("keydown.keydownSL_0", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					$("#nav_all>.wang-spy:eq(8) ul li a:eq(4)").focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum1.click();
					_EsdDynamicTransformationScript.esdTagANum1.focus();
					console.log(document.activeElement);
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
			$(document).unbind("keydown.keydownSL_0");
		});
		
		

		//第一块
		_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
			
//			_EsdDynamicTransformationScript.esdTagCircleNum1.click();
			$(document).bind("keydown.keydownSL_1", function (e) {
				if(e.shiftKey&&e.keyCode==9){
//					$(_EsdDynamicTransformationScript.nav8.focusObjSelector).mouseover();
					$("#nav_all .wang-spy:eq(8) a:eq(0)").mouseover();
					_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
					
					Qfast(false, 'widgets', function () {
						K.tabs({
							id: 'fsD1',   //焦点图包裹id  
							conId: "D1pic1",  //** 大图域包裹id  
							tabId:"D1fBt",  
							tabTn:"a",
							conCn: '.fcon', //** 大图域配置class       
							auto: 1,   //自动播放 1或0
							effect: 'fade',   //效果配置
							eType: 'click', //** 鼠标事件
							pageBt:true,//是否有按钮切换页码
							bns: ['.prev', '.next'],//** 前后按钮配置class                          
							interval: 3000  //** 停顿时间  
						}) 
					}) 
					
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum2.click();
					_EsdDynamicTransformationScript.esdTagANum2.focus();
					console.log(document.activeElement);
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
			$(document).unbind("keydown.keydownSL_1");
		});

		//第二块
		_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
			
//			_EsdDynamicTransformationScript.esdTagCircleNum2.click();
			$(document).bind("keydown.keydownSL_2", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum1.click();
					_EsdDynamicTransformationScript.esdTagANum1.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum3.click();
					_EsdDynamicTransformationScript.esdTagANum3.focus();
					console.log(document.activeElement);
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
			$(document).unbind("keydown.keydownSL_2");
		});
		
		//第三块
		_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
			
//			_EsdDynamicTransformationScript.esdTagCircleNum3.click();
			$(document).bind("keydown.keydownSL_3", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum2.click();
					_EsdDynamicTransformationScript.esdTagANum2.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum4.click();
					_EsdDynamicTransformationScript.esdTagANum4.focus();
					console.log(document.activeElement);
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
			$(document).unbind("keydown.keydownSL_3");
		});
		
		//第四块
		_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
//			_EsdDynamicTransformationScript.esdTagCircleNum4.click();
			$(document).bind("keydown.keydownSL_4", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum3.click();
					_EsdDynamicTransformationScript.esdTagANum3.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagCircleNum5.click();
					_EsdDynamicTransformationScript.esdTagANum5.focus();
					console.log(document.activeElement);
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
			$(document).unbind("keydown.keydownSL_4");
		});
		
		//第五块
		_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
			
//			_EsdDynamicTransformationScript.esdTagCircleNum5.click();
			$(document).bind("keydown.keydownSL_5", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum4.click();
					_EsdDynamicTransformationScript.esdTagANum4.focus();
					return false;
				}else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.esdTagAfterNum1.focus();
					
					Qfast(false, 'widgets', function () {
						K.tabs({
							id: 'fsD1',   //焦点图包裹id  
							conId: "D1pic1",  //** 大图域包裹id  
							tabId:"D1fBt",  
							tabTn:"a",
							conCn: '.fcon', //** 大图域配置class       
							auto: 1,   //自动播放 1或0
							effect: 'fade',   //效果配置
							eType: 'click', //** 鼠标事件
							pageBt:true,//是否有按钮切换页码
							bns: ['.prev', '.next'],//** 前后按钮配置class                          
							interval: 3000  //** 停顿时间  
						}) 
					}) 
					
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
			$(document).unbind("keydown.keydownSL_5");
		});
		
		//轮播后的焦点
		_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
			
			$(document).bind("keydown.keydownSL_6", function (e) {
				if(e.shiftKey&&e.keyCode==9){
					_EsdDynamicTransformationScript.esdTagCircleNum5.click();
					_EsdDynamicTransformationScript.esdTagANum5.focus();
					return false;
				}
//				else if (e.keyCode == 9) {
//					
//				}
			});

		});
		_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
			$(document).unbind("keydown.keydownSL_6");
		});

//			}
//	}, 500);	
		
}
